<div id="tabs">
	<ul>
        <li id="current"><?php echo $this->Html->link(__('Danh sách sản phẩm', true), array('controller' => 'hanghoabhlds', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('Thêm sản phẩm mới', true), array('controller' => 'hanghoabhlds', 'action' => 'add')); ?> </li>
     </ul>  
</div>
<div class="hanghoabhlds index">
	<h2><?php __('Danh mục sản phẩm dùng cho BHLĐ');?></h2>
	<table cellpadding="0" cellspacing="0" id='tables'>
	<tr>
			<th><?php echo 'STT';?></th>
			<th><?php echo 'Mã sản phẩm';?></th>
			<th><?php echo 'Tên sẩn phẩm';?></th>
			<th class="actions"><?php __('Lựa chọn');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($hanghoabhlds as $hanghoabhld):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $hanghoabhld['Hanghoabhld']['id']; ?>&nbsp;</td>
		<td>
			<?php echo $hanghoabhld['Hanghoa']['tenhh']; ?>
		</td>
		<td><?php echo $hanghoabhld['Hanghoabhld']['tenhh']; ?>&nbsp;</td>
		<td class="actions">			
			<?php echo $this->Html->link(__(' Xóa ', true), array('action' => 'delete', $hanghoabhld['Hanghoabhld']['id']), null, sprintf(__('Bạn muốn xóa sản phẩm (%s) khỏi danh mục BHLĐ?', true), $hanghoabhld['Hanghoabhld']['tenhh'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện có %count% mẫu tin', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>